import common from './libs/utils/common.js'
import toolsU from './libs/utils/tools-u.js'
import auth from './libs/utils/auth.js'
import timeFormat from './libs/function/timeFormat.js'
import verify from './libs/function/verify.js'

import defaultSettings from './config/defaultSettings.js'

const $s = {
	...common,
	...toolsU,
	...auth,
	...verify,
	timeFormat,
	defaultSettings
}

uni.$s = $s

const install = Vue => {
	Vue.prototype.$s = $s
}

export default {
	install
}